package com.dbl.oms.platform.persistence.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dbl.oms.common.model.SuperEntity;

/**
 * <p>
 * 通知表
 * </p>
 *
 * @author Ladd
 * @since 2017-12-15
 */
@TableName("sys_notice")
public class SysNotice extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 标题
     */
	private String title;
    /**
     * 类型
     */
	private Integer type;
    /**
     * 内容
     */
	private String content;
    /**
     * 创建人
     */
	@TableField("create_by")
	private String createBy;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;


	public Integer getId() {
		return id;
	}

	public SysNotice setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getTitle() {
		return title;
	}

	public SysNotice setTitle(String title) {
		this.title = title;
		return this;
	}

	public Integer getType() {
		return type;
	}

	public SysNotice setType(Integer type) {
		this.type = type;
		return this;
	}

	public String getContent() {
		return content;
	}

	public SysNotice setContent(String content) {
		this.content = content;
		return this;
	}

	public String getCreateBy() {
		return createBy;
	}

	public SysNotice setCreateBy(String createBy) {
		this.createBy = createBy;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public SysNotice setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public static final String ID = "id";

	public static final String TITLE = "title";

	public static final String TYPE = "type";

	public static final String CONTENT = "content";

	public static final String CREATE_BY = "create_by";

	public static final String CREATE_TIME = "create_time";

	@Override
	public String toString() {
		return "SysNotice{" +
			", id=" + id +
			", title=" + title +
			", type=" + type +
			", content=" + content +
			", createBy=" + createBy +
			", createTime=" + createTime +
			"}";
	}
}
